<?php
class Zend_View_Helper_HasFlashMessages extends Zend_View_Helper_Abstract
{
    /**
     * Return true if has message
     * 
     * @return boolean 
     */
    public function hasFlashMessages()
    {
        $flash = Zend_Controller_Action_HelperBroker::getStaticHelper('FlashMessenger');
        
        if ($flash->hasMessages()) {
            return TRUE;
        } else {
            return FALSE;
        }
    }
}